package com.dabai.iot.core.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dabai.iot.core.dto.ThingModelBlockUpdate;
import com.dabai.iot.core.entity.ThingModelBlockEntity;

/**
 * 物模型功能模块 Service 接口
 *
 * @author kev1n
 */
public interface IThingModelBlockService extends IService<ThingModelBlockEntity> {

    /**
     * 新增功能模块
     */
    boolean addModelBlock(ThingModelBlockEntity block);

    /**
     * 修改功能模块
     */
    boolean updateModelBlock(ThingModelBlockUpdate blockUpdate);

    /**
     * 删除功能模块
     */
    boolean removeModelBlock(Long id);

    /**
     * 分页查询
     */
    IPage<ThingModelBlockEntity> getModelBlockPage(IPage<ThingModelBlockEntity> page, ThingModelBlockEntity thingModel);

}
